home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / automake-1.5 / am / python.am < prev    next >
Encoding:
Text File  |  2005-10-16  |  2.3 KB  |  78 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright 1999, 2001 Free Software Foundation, Inc.
  3.  
  4. ## This program is free software; you can redistribute it and/or modify
  5. ## it under the terms of the GNU General Public License as published by
  6. ## the Free Software Foundation; either version 2, or (at your option)
  7. ## any later version.
  8.  
  9. ## This program is distributed in the hope that it will be useful,
  10. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ## GNU General Public License for more details.
  13.  
  14. ## You should have received a copy of the GNU General Public License
  15. ## along with this program; if not, write to the Free Software
  16. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  17. ## 02111-1307, USA.
  18.  
  19.  
  20. ## ------------ ##
  21. ## Installing.  ##
  22. ## ------------ ##
  23.  
  24. if %?INSTALL%
  25. _am_installdirs += $(DESTDIR)$(%DIR%dir)
  26. ?EXEC?.PHONY install-exec-am: install-%DIR%PYTHON
  27. ?!EXEC?.PHONY install-data-am: install-%DIR%PYTHON
  28. install-%DIR%PYTHON: $(%DIR%_PYTHON)
  29.     @$(NORMAL_INSTALL)
  30.     $(mkinstalldirs) $(DESTDIR)$(%DIR%dir)
  31.     @list='$(%DIR%_PYTHON)'; for p in $$list; do\
  32.       if test -f $(srcdir)/$$p; then \
  33. ## Don't perform translation, since script name is important.
  34.         echo " $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)$(%DIR%dir)/$$p"; \
  35.         $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(%DIR%dir)/$$p; \
  36.       else :; fi; \
  37.     done
  38. ## Byte-compile must be done at install time, since file times are
  39. ## encoded in the actual files.
  40.     @PYTHON=$(PYTHON) $(py_compile) --basedir $(DESTDIR)$(%DIR%dir) $(%DIR%_PYTHON)
  41. endif %?INSTALL%
  42.  
  43.  
  44. ## -------------- ##
  45. ## Uninstalling.  ##
  46. ## -------------- ##
  47.  
  48. if %?INSTALL%
  49. .PHONY uninstall-am: uninstall-%DIR%PYTHON
  50. uninstall-%DIR%PYTHON:
  51.     @$(NORMAL_UNINSTALL)
  52.     list='$(%DIR%_PYTHON)'; for p in $$list; do \
  53.       rm -f $(DESTDIR)$(%DIR%dir)/$$p; \
  54. ## This is to remove the .pyc and .pyo byte compiled versions (a bit
  55. ## of a hack).
  56.       rm -f $(DESTDIR)$(%DIR%dir)/$${p}c; \
  57.       rm -f $(DESTDIR)$(%DIR%dir)/$${p}o; \
  58.     done
  59. endif %?INSTALL%
  60.  
  61.  
  62. ## ---------- ##
  63. ## Cleaning.  ##
  64. ## ---------- ##
  65.  
  66. .PHONY clean-am: clean-python
  67. clean-python:
  68.     -test -z "$(PYCFILES)$(PYOFILES)" || rm -f $(PYCFILES) $(PYOFILES)
  69.  
  70.  
  71. ## -------------- ##
  72. ## Distributing.  ##
  73. ## -------------- ##
  74.  
  75. if %?DIST%
  76. DIST_COMMON += $(%DIR%_PYTHON)
  77. endif %?DIST%
  78.